# Contributor: Henrik Holst <henrik.holst@millistream.com>
# Maintainer:
pkgname=libmdf
pkgver=1.0.29
pkgrel=0
pkgdesc="Millistream Data Feed API library"
url="https://millistream.com"
arch="all !ppc64le" # Fails to fetch on builders
license="LGPL-3.0-or-later"
makedepends="
	openssl-dev>3
	zlib-dev
	zstd-dev
	"
subpackages="$pkgname-dev"
source="https://packages.millistream.com/source/libmdf-$pkgver.tar.gz"

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3211674382a7f02bc53a240c66d12160fbf7b2aa62a54ddd23ebe2d35a6065f052f14735975129636618b6d38960660716835d3cc17cc874e89de9aa5d4d85dc  libmdf-1.0.29.tar.gz
"
